package com.oazon.moco.lan.core;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.oazon.moco.bean.HttpMsgBodyBean;

public abstract class AbsHttpMsgHandler {
	
	
	public abstract void doBusiness(HttpMsgBodyBean bean);
	
	protected int getInstanceID(String data){
		JSONObject jsonObject = JSON.parseObject(data);
		Integer instanceID = jsonObject.getInteger("instanceID");
		return instanceID;
	}
}
